FROM openshift/base-rhel8:v4.10.0-202202160023.p0.gf17f552.assembly.stream
ENV __doozer=update BUILD_RELEASE=202202241648.p0.g6246922.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202241648.p0.g6246922.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=6246922 OS_GIT_VERSION=4.10.0-202202241648.p0.g6246922.assembly.stream-6246922 SOURCE_DATE_EPOCH=1632736690 SOURCE_GIT_COMMIT=6246922338bc8aa21276c7e679bdd082307cbd45 SOURCE_GIT_TAG=6246922 SOURCE_GIT_URL=https://github.com/openshift/ironic-hardware-inventory-recorder-image 

RUN dnf update -y && \
    dnf install -y openstack-ironic-python-agent lshw smartmontools iproute python3-hardware && \
    dnf clean all && \
    rm -rf /var/cache/{yum,dnf}/*

COPY ./runironic-agent.sh /bin/runironic-agent

ENTRYPOINT ["/bin/runironic-agent"]

LABEL \
        io.openshift.release.operator="true" \
        name="openshift/ose-ironic-hardware-inventory-recorder" \
        com.redhat.component="ironic-hardware-inventory-recorder-image-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="Bare Metal Hardware Provisioning" \
        io.openshift.maintainer.subcomponent="ironic" \
        release="202202241648.p0.g6246922.assembly.stream" \
        io.openshift.build.commit.id="6246922338bc8aa21276c7e679bdd082307cbd45" \
        io.openshift.build.source-location="https://github.com/openshift/ironic-hardware-inventory-recorder-image" \
        io.openshift.build.commit.url="https://github.com/openshift/ironic-hardware-inventory-recorder-image/commit/6246922338bc8aa21276c7e679bdd082307cbd45" \
        version="v4.10.0"

